<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <th:block th:include="common.html :: source"></th:block>
</head>
<body>

<th:block th:include="common.html :: header"></th:block>

<div class="i_bg bg_color">
    <div class="m_content">

        <div class="m_left">
            <div class="left_n">管理中心</div>
            <div class="left_m">
                <div class="left_m_t t_bg1">订单中心</div>
                <ul>
                    <li><a href="/orders/orderList" >我的订单</a></li>
                </ul>
            </div>
            <div class="left_m">
                <div class="left_m_t t_bg2">会员中心</div>
                <ul>
                    <li><a href="/user/userInfo" >用户信息</a></li>
                    <li><a href="/user/userAddressList" >地址管理</a></li>
                </ul>
            </div>
        </div>

        <div class="m_right">
            <p>地址修改</p>
            <form action="/userAddress/doUpdate" method="post">
                <input type="hidden" name="id" th:value="${userAddress.id}"/>
                <input type="hidden" name="userId" th:value="${session.user.id}"/>
                地址：<input type="text" name="address" th:value="${userAddress.address}"/><br/>
                备注：<input type="text" name="remark" th:value="${userAddress.remark}"/><br/>
                是否是默认地址：
                <input type="radio" th:if="${userAddress.isdefault == 1}" checked name="isdefault" value="1"/>
                    <span th:if="${userAddress.isdefault == 1}">是</span>

                <input type="radio" th:if="${userAddress.isdefault == 0}" name="isdefault" value="1"/>
                <span th:if="${userAddress.isdefault == 0}">是</span>
                <input type="radio" th:if="${userAddress.isdefault == 0}" checked name="isdefault" value="0"/>
                    <span th:if="${userAddress.isdefault == 0}">否</span>
                <input type="radio" th:if="${userAddress.isdefault == 1}" name="isdefault" value="0"/>
                    <span th:if="${userAddress.isdefault == 1}">否</span>
                <br/>
                <input type="submit" value="修改"/>
            </form>
        </div>

    </div>
</div>

<th:block th:include="common.html :: footer"></th:block>
<th:block th:include="common.html :: permit"></th:block>

</body>
</html>